home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
date
/
admisc.int
< prev
next >
Wrap
Text File
|
1996-04-08
|
2KB
|
50 lines
{$V-,I-}
{Conditional defines that may affect this unit}
{$I AWDEFINE.INC}
{*********************************************************}
{* ADMISC.PAS 1.01 *}
{* Copyright (c) TurboPower Software 1994. *}
{* All rights reserved. *}
{*********************************************************}
unit AdMisc;
{-Unit for miscellaneous Delphi-specific routines}
interface
uses
OoMisc;
type
CharSet = Set of Char;
function TrimTrail(const S : String) : String;
{-Return a String with trailing white space removed}
function JustPathname(const PathName : String) : String;
{-Return just the drive:directory portion of a pathname}
function JustFilename(const PathName : String) : String;
{-Return just the filename and extension of a pathname}
function AddBackSlash(const DirName : String) : String;
{-Add a default backslash to a directory name}
function FullPathName(const FName : String) : String;
{-Given FName (known to exist), return a full pathname}
function WordCount(const S : String; const WordDelims : CharSet) : Byte;
{-Given a set of word delimiters, return number of words in S}
function WordPosition(const N : Byte; const S : String; const WordDelims : CharSet) : Byte;
{-Given a set of word delimiters, return start position of N'th word in S}
function ExtractWord(const N : Byte; const S : String; const WordDelims : CharSet) : String;
{-Given a set of word delimiters, return the N'th word in S}
function IsDirectory(const FName : String) : Boolean;
{-Return true if FName is a directory}